package cn.schoolwow.quickdao.annotation;

import cn.schoolwow.quickdao.domain.entity.CheckFieldStrategy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface CheckField {
    /**
     * 检查策略
     */
    CheckFieldStrategy strategy();

    /**
     * 关联信息
     * */
    ForeignKey foreignKey();

    /**提示消息*/
    String message();
}
